﻿<ResourceDictionary
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
					xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
					xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows"
					xmlns:riaControlsBase="clr-namespace:SBPweb.RIA.Client.Controls.Base;assembly=SBPweb.RIA.Client.Controls"
					xmlns:riaControlsContent="clr-namespace:SBPweb.RIA.Client.Controls.Content;assembly=SBPweb.RIA.Client.Controls"
					xmlns:riaControlsWindows="clr-namespace:SBPweb.RIA.Client.Controls.Windows;assembly=SBPweb.RIA.Client.Controls">

    <Style x:Key="ToolBarItemButtonBig" TargetType="ContentControl">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ContentControl">
                    <Grid x:Name="grid" Width="32" Height="32">
                        <vsm:VisualStateManager.VisualStateGroups>
                            <vsm:VisualStateGroup x:Name="CommonStates">
                                <vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualTransition GeneratedDuration="00:00:00.3">
                                        <vsm:VisualTransition.GeneratedEasingFunction>
                                            <PowerEase EasingMode="EaseInOut" Power="5" />
                                        </vsm:VisualTransition.GeneratedEasingFunction>
                                    </vsm:VisualTransition>
                                </vsm:VisualStateGroup.Transitions>
                                <vsm:VisualState x:Name="Normal">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
                                                                           Storyboard.TargetName="grid"
                                                                           Storyboard.TargetProperty="(UIElement.Width)">
                                            <SplineDoubleKeyFrame KeyTime="00:00:00" Value="32" />
                                        </DoubleAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
                                                                           Storyboard.TargetName="grid"
                                                                           Storyboard.TargetProperty="(UIElement.Height)">
                                            <SplineDoubleKeyFrame KeyTime="00:00:00" Value="32" />
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
                                                                           Storyboard.TargetName="grid"
                                                                           Storyboard.TargetProperty="(UIElement.Width)">
                                            <SplineDoubleKeyFrame KeyTime="00:00:00" Value="100" />
                                        </DoubleAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
                                                                           Storyboard.TargetName="grid"
                                                                           Storyboard.TargetProperty="(UIElement.Height)">
                                            <SplineDoubleKeyFrame KeyTime="00:00:00" Value="100" />
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                        </vsm:VisualStateManager.VisualStateGroups>
                        <ContentPresenter x:Name="content" Content="{TemplateBinding Content}"
                                              HorizontalAlignment="{TemplateBinding HorizontalAlignment}"
                                              VerticalAlignment="{TemplateBinding VerticalAlignment}"
                                        />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="ToolBarItemButtonNormal" TargetType="ContentControl">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ContentControl">
                    <Grid x:Name="grid" Width="24" Height="24">
                        <vsm:VisualStateManager.VisualStateGroups>
                            <vsm:VisualStateGroup x:Name="CommonStates">
                                <vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualTransition GeneratedDuration="00:00:00.3">
                                        <vsm:VisualTransition.GeneratedEasingFunction>
                                            <PowerEase EasingMode="EaseInOut" Power="5" />
                                        </vsm:VisualTransition.GeneratedEasingFunction>
                                    </vsm:VisualTransition>
                                </vsm:VisualStateGroup.Transitions>
                                <vsm:VisualState x:Name="Normal">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
                                                                           Storyboard.TargetName="grid"
                                                                           Storyboard.TargetProperty="(UIElement.Width)">
                                            <SplineDoubleKeyFrame KeyTime="00:00:00" Value="24" />
                                        </DoubleAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
                                                                           Storyboard.TargetName="grid"
                                                                           Storyboard.TargetProperty="(UIElement.Height)">
                                            <SplineDoubleKeyFrame KeyTime="00:00:00" Value="24" />
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
                                                                           Storyboard.TargetName="grid"
                                                                           Storyboard.TargetProperty="(UIElement.Width)">
                                            <SplineDoubleKeyFrame KeyTime="00:00:00" Value="48" />
                                        </DoubleAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
                                                                           Storyboard.TargetName="grid"
                                                                           Storyboard.TargetProperty="(UIElement.Height)">
                                            <SplineDoubleKeyFrame KeyTime="00:00:00" Value="48" />
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                        </vsm:VisualStateManager.VisualStateGroups>
                        <ContentPresenter x:Name="content" Content="{TemplateBinding Content}"
                                              HorizontalAlignment="{TemplateBinding HorizontalAlignment}"
                                              VerticalAlignment="{TemplateBinding VerticalAlignment}"
                                        />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

</ResourceDictionary>